<template>
  <input type="text" placeholder="加数1" v-model.number="num1"> +
   <input type="text" placeholder="加数2" v-model.number="num2"> 
   = {{ num1 + num2 }}
</template>

<script setup>
    import { ref } from 'vue';
    const num1 = ref(0);
    const num2 = ref(0);
</script>

<style>

</style>